﻿#region Copyright 
/*-------------------------------------------------------------------------
* 命名空间名称/文件名:    SSPivot.Admin.Core.Service.communal.Captcha.Dto/SendSmsCodeDto 
* CLR版本:     4.0.30319.42000
* 机器名称:    DESKTOP-NHMLO8A
* 功 能：       N/A
* 类 名：       SendSmsCodeDto
* 创建时间：  2025/6/4 11:17:07
* 版本号：      v1.0
* 创建人:        xulong
*-------------------------------------------------------------------------*/
#endregion
using Lazy.SlideCaptcha.Core.Validator;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSPivot.Admin.Core.Service.communal.Captcha.Dto
{
    /// <summary>
    /// 发送短信验证码
    /// </summary>
    public class SendSmsCodeDto
    {
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "请输入手机号")]
        public string? Mobile { get; set; }

        /// <summary>
        /// 验证码Id
        /// </summary>
        public string? CodeId { get; set; }

        /// <summary>
        /// 验证码Id
        /// </summary>
        [Required(ErrorMessage = "请完成安全验证")]
        public string? CaptchaId { get; set; }

        /// <summary>
        /// 滑动轨迹
        /// </summary>
        [Required(ErrorMessage = "请完成安全验证")]
        public SlideTrack Track { get; set; }
    }

    /// <summary>
    /// 发送邮件验证码
    /// </summary>
    public class SendEmailCodeDto
    {
        /// <summary>
        /// 邮件地址
        /// </summary>
        [Required(ErrorMessage = "请输入邮件地址")]
        public string? Email { get; set; }

        /// <summary>
        /// 验证码Id
        /// </summary>
        public string? CodeId { get; set; }

        /// <summary>
        /// 验证码Id
        /// </summary>
        [Required(ErrorMessage = "请完成安全验证")]
        public string? CaptchaId { get; set; }

        /// <summary>
        /// 滑动轨迹
        /// </summary>
        [Required(ErrorMessage = "请完成安全验证")]
        public SlideTrack Track { get; set; }
    }
}
